package cn.mooncode.basketballManage.service;

import cn.mooncode.basketballManage.pojo.RespBean;
import cn.mooncode.basketballManage.pojo.RespPageBean;
import cn.mooncode.basketballManage.pojo.Train;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jwz
 * @since 2021-03-28
 */
public interface ITrainService extends IService<Train> {

    /**
     * 获取所有训练信息
     * @param currentPage
     * @param size
     * @param train
     * @return
     */
    RespPageBean getAllTrains(Integer currentPage, Integer size, Train train);

    /**
     * 获取当前用户所有训练信息
     * @param currentPage
     * @param size
     * @param train
     * @param tid
     * @return
     */
    RespPageBean getCurrentTrains(Integer currentPage, Integer size, Train train, Integer tid);

    /**
     * 添加训练结果
     * @param id
     * @param result
     * @return
     */
    RespBean addResult(Integer id, String result);
}
